#pragma once
#include "SFML\Window.hpp"
#include "SFML\Graphics.hpp"
#include <list>

class seMainMenu
{

public:
	enum MenuResult { Nothing, Exit, Play };	
	
	struct MenuItem
		{
		public:
			sf::Rect<int> rect;
			MenuResult action;
		};

	MenuResult Show(sf::RenderWindow& window);
	void Load();

	sf::Image mBackgroundMenu;
	sf::Sprite mBackgroundSpriteMenu;

	sf::Image mStart, mStart2, mExit, mExit2;
	sf::Sprite mStartSprite, mExitSprite;
	sf::Sprite mStartSprite_Active, mExitSprite_Active;

	//heroes
	sf::Sprite mActiveSprite1;
	sf::Image mBackFront1;
	sf::Sprite mActiveSprite2;
	sf::Image mBackFront2;

private:
	MenuResult GetMenuResponse(sf::RenderWindow& window);
	MenuResult HandleClick(int x, int y);
	std::list<MenuItem> _menuItems;
};